﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Infratructure.Migrations
{
    /// <inheritdoc />
    public partial class db2 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_角色权限中间表",
                table: "角色权限中间表");

            migrationBuilder.RenameTable(
                name: "角色权限中间表",
                newName: "RolePermissionModel");

            migrationBuilder.AddPrimaryKey(
                name: "PK_RolePermissionModel",
                table: "RolePermissionModel",
                column: "Id");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_RolePermissionModel",
                table: "RolePermissionModel");

            migrationBuilder.RenameTable(
                name: "RolePermissionModel",
                newName: "角色权限中间表");

            migrationBuilder.AddPrimaryKey(
                name: "PK_角色权限中间表",
                table: "角色权限中间表",
                column: "Id");
        }
    }
}
